'use strict'

const path = require('path')

module.exports = {
    port: '3001',
    secret: process.env.token_secret,
    staticResBaseUrl:'https://daisyz.cn/img/',
    allowRegister: false,
    publicDir: path.resolve(__dirname, './public'),
    logPath: path.resolve(__dirname, './logs/koa-template.log'),
    mongoDB: {
        database: process.env.mongodb_database,
        username: process.env.mongodb_username,
        password: process.env.mongodb_password,
        host: process.env.mongodb_host,
        port: process.env.mongodb_port
    }
}

// docker run --name nginx -p 80:80 -v /home/tang/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro -v /mnt/data/blog-img/:/mnt/data/blog-img/ -d --network host nginx
